package org.springblade.modules.repair.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springblade.modules.repair.entity.ElevatorAttachment;
import org.springblade.modules.repair.entity.ElevatorAttachmentHistory;
import org.springblade.modules.repair.entity.ElevatorFieldV;
import org.springblade.modules.repair.vo.elevator.ElevatorFloorVo;
import org.springblade.modules.repair.vo.part.PartWordUrlVo;

import java.util.Date;
import java.util.List;

@Data
public class ElevatorDetailDTO {

	/**
	 * id
	 */
	@JsonSerialize(using = ToStringSerializer.class)
	private Long id;

	/**
	 * 品牌id
	 */
	@JsonSerialize(using = ToStringSerializer.class)
	private Long brandId;

	/**
	 * 品牌名称
	 */
	private String brandName;

	/**
	 * 型号名称
	 */
	private String typeName;

	/**
	 * 设备代码
	 */
	private String privateNum;

	/**
	 * 额定载重量
	 */
	private String supportingPower;

	/**
	 * 额定速度
	 */
	private String speed;

	/**
	 * 层
	 */
	private String floorHigh;

	/**
	 * 站
	 */
	private String stand;

	/**
	 * 门
	 */
	private String door;

	/**
	 * 单位内编号
	 */
	private String registerNumber;

	/**
	 * 登记证编号
	 */
	private String equipmentRegisterNumber;

	private Long elevatorUseType;

	private Date madeDate;


	@JsonFormat(pattern = "yyyyMM", timezone = "GMT+8")
	private Date startDate;

	/**
	 * 提升高度
	 */
	private String hoistHeight;


	/**
	 * 合格证号
	 */
	private String certNo;

	/**
	 * 生产工号
	 */
	private String manufactureNo;

	/**
	 * 登记机关
	 */
	private String registrationAuthority;

	/**
	 * 检验机构
	 */
	private String certificationBody;

	/**
	 * 安全员名字
	 */
	private String securityGuardName;

	/**
	 * 出厂型号
	 */
	private String factoryNumber;

	private Integer useType;

	private String latitude;
	private String longitude;


	@ApiModelProperty("")
	private ElevatorFieldV fieldV;

	//2024-07-25新增
	@ApiModelProperty("维保-服务电话")
	private String wbPhone;

	@ApiModelProperty("维保-服务电话贴纸")
	private List<PartWordUrlVo> wbPhoneImg;

	@ApiModelProperty("维保-更新时间")
	private Date wbPhoneImgDate;

	@ApiModelProperty("维保-标致附件url")
	private List<PartWordUrlVo> wbExtUrl;

	@ApiModelProperty("维保-标致附件url更新时间")
	private Date wbExtUrlDate;

	@ApiModelProperty("层信息")
	@TableField(typeHandler = JacksonTypeHandler.class)
	private List<ElevatorFloorVo> floorTier;

	@ApiModelProperty("站信息")
	private List<ElevatorFloorVo> floorPlatforms;

	@ApiModelProperty("门信息")
	private List<ElevatorFloorVo> floorDoors;

	@ApiModelProperty("楼层编号逗号分割")
	private String floorNums;

	/**
	 * 楼层总数
	 */
	@ApiModelProperty(value = "楼层总数")
	private Integer floorAllNum;

	@ApiModelProperty("使用附件")
	List<ElevatorAttachmentHistory> certificateLists;

	/**
	 * 铭牌附件url列表
	 */
	private List<ElevatorAttachmentHistory> nameAttachmentList;


	@ApiModelProperty("电梯快速识别码")
	private String elevatorNum;


	@ApiModelProperty("识别代码贴纸")
	@TableField(typeHandler = JacksonTypeHandler.class)
	private List<PartWordUrlVo> elevatorNumImg;

	@ApiModelProperty("识别代码贴纸更新时间")
	private Date elevatorNumImgDate;

	/**
	 * 制造商名称
	 */
	@TableField(value = "made_name")
	private String madeName;

	/**
	 * 品牌型号id
	 */
	@TableField(value = "brand_v_id")
	private Long brandVId;

	/**
	 * 品牌型号系列id
	 */
	@TableField(value = "brand_v_sku_id")
	private Long brandVSkuId;

	@TableField(value = "出厂日期")
	private Date factoryDate;


	@ApiModelProperty("保险公司名称")
	private  String bxCompanyId;

	@ApiModelProperty("保险公司到期时间")
	private  Date bxCompanyEndDate;

	@ApiModelProperty("保险-标致url")
	private List<PartWordUrlVo> bxExtUrl;

	@ApiModelProperty("保险-标致url")
	private Date bxExtUrlDate = new Date();

	@ApiModelProperty("安装监督检验日期")
	private String azCheckDate;

	private Date azCheckBeginDate;
}
